package com.guide.persistence;

import com.guide.domain.Message;
import com.guide.domain.MessageQuery;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface MessageMapper {
    int countByExample(@Param("example") MessageQuery example);

    int deleteByExample(MessageQuery example);

    int deleteByPrimaryKey(Long id);

    int insert(Message record);

    int insertSelective(Message record);

    List<Message> selectByExample(@Param("example") MessageQuery example ,@Param("pageIndex") Integer pageIndex, @Param("limit") Integer limit);

    Message selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") Message record, @Param("example") MessageQuery example);

    int updateByExample(@Param("record") Message record, @Param("example") MessageQuery example);

    int updateByPrimaryKeySelective(Message record);

    int updateByPrimaryKey(Message record);
}